﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace PhoneApp1
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void testbutton_Click(object sender, RoutedEventArgs e)
        {
            Button s = sender as Button;
            s.Content = "penis";
            lol.Begin();
        }

        private void testbutton_mouseenter(object sender, MouseEventArgs e)
        {
            Button b = sender as Button;
            SolidColorBrush sBrush = (SolidColorBrush)b.Background;


            sBrush.Color = Colors.Yellow;

        }

        private void testbutton_mouseleave(object sender, MouseEventArgs e)
        {

            Button b = sender as Button;
            SolidColorBrush sBrush = (SolidColorBrush)b.Background;


            sBrush.Color = Colors.Orange;
        }

    }
}